package org.mysocial.datamodel;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToOne;

@Entity
public class CommentNotification extends Notification
{
	@OneToOne(fetch = FetchType.LAZY)
	private Account sourceAccount;

	@OneToOne(fetch = FetchType.LAZY)
	private Post targetPost;

	public Account getSourceAccount()
	{
		return sourceAccount;
	}

	public Post getTargetPost()
	{
		return targetPost;
	}

	public void setSourceAccount(Account sourceAccount)
	{
		this.sourceAccount = sourceAccount;
	}

	public void setTargetPost(Post targetPost)
	{
		this.targetPost = targetPost;
	}
}
